package com.ty.day1;

/**
 * Created by IntelliJ IDEA.
 *
 * @author : txy
 * @create : 2023/11/14 11:56
 */
public class PointDemo {
    public static void main(String[] args) {
        Point p1 = new Point(6,4);
        Point p2 = new Point(4,4);
        p1.point();
        p2.point();
        System.out.println(Math.sqrt(Math.pow(p1.x- p2.x,2)+Math.pow(p1.y- p2.y,2)));
    }
}
